package com.caiheng.api.service.setmeal;

import com.caiheng.api.entity.setmeal.SetMeal;
import com.caiheng.api.entity.setmeal.SetMealInfo;
import com.caiheng.api.entity.setmeal.SetMealOrder;
import com.caiheng.api.entity.wxuser.User;
import com.caiheng.api.service.base.BaseService;

import java.util.List;

/**
 * 套餐活动支付订单Service接口
 *
 * @author ruoyi
 * @date 2022-06-06
 */
public interface SetMealOrderService extends BaseService<SetMealOrder> {
    /**
     *  添加订单
     * @param user
     * @param setMeal
     * @return
     */
    int addOrder(User user, SetMeal setMeal, SetMealInfo setMealInfo);

    /**
     * 支付回调处理
     */
    int buyMeal(SetMealOrder mealOrder);

    /**
     *  获取我的订单列表
     * @param user_id
     * @param state
     * @param pageIndex
     * @param pageSize
     * @return
     */
    List<SetMealOrder> getMyOrderList(int user_id,int state,int pageIndex,int pageSize);
}
